package edu.cmu.cs.webapp.ioms.dao;

import java.util.List;

import edu.cmu.cs.webapp.ioms.models.FormularRecord;
import edu.cmu.cs.webapp.ioms.models.Product;

public interface FormulaDAO {
	public List<FormularRecord> getAllForm() throws DataAccessException;

	// give a product object(especially id), get all formula record relating to
	// that product
	public List<FormularRecord> getFormProd(Product prod)
			throws DataAccessException;

	// delete one formula record
	public boolean deleteFormula(FormularRecord fr) throws DataAccessException;

	public void addFormula(FormularRecord fr) throws DataAccessException;
	
	public boolean updateFormula(FormularRecord fr) throws DataAccessException;


}
